mod chapter2;
mod chapter3;
mod chapter4;
mod chapter21variable;
mod chapter22numbers;
mod chapter23ownership;
mod chapter25flowcontrol;
mod chapter26matchpattern;

fn greet_world() {
    let southern_germany = "Grüß Gott!";
    let chinese = "世界，你好";
    let english = "World, hello";
    let regions = [southern_germany, chinese, english];
    for region in regions.iter(){
        println!("{}", &region);
    }
}

fn main() {
    println!("Hello, world!");
    greet_world();

    // chapter2::main();
    // chapter3::main();
    // chapter4::main();
    // chapter21variable::main();
    // chapter22numbers::main();
    // chapter23ownership::main();
    // chapter25flowcontrol::main();
    chapter26matchpattern::main();
}
